package com.canaan.business.domain.invoice;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.canaan.common.annotation.Excel;
import com.canaan.common.annotation.TableName;
import com.canaan.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 销售订单对象 wms_sales_order
 *
 * @author ruoyi
 * @date 2022-12-13
 */
@Data
@TableName("wms_sales_order")
public class WmsSalesOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    private String no;

    /** 销售订单状态 1新建 2进行中 3已完成 */
    @Excel(name = "销售订单状态", dictType = "invoice_sales_order_status")
    private Integer orderStatus;

    /** 客户编号 */
//    @Excel(name = "客户编号")
    private String customerNo;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 工单编号 */
//    @Excel(name = "工单编号")
    private String workOrderNo;

    /** 是否删除：1是 0否 */
    private String delFlag;

    /** 订单总数 */
    @Excel(name = "订单总数", type = Excel.Type.EXPORT)
    private Long totalOrderQty;

    /** 计划出库时间 */
    @Excel(name = "计划出库时间", dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date planDeliveryTime;

    /** 完成时间 */
    @Excel(name = "完成时间", type = Excel.Type.EXPORT, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date completeTime;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createBy;

    /** 创建时间 */
    @Excel(name = "创建时间", type = Excel.Type.EXPORT, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updateBy;

    /** 更新时间 */
    @Excel(name = "最后更新时间", type = Excel.Type.EXPORT, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 排序 */
//    @Excel(name = "排序")
    private Integer sort;


}
